Intelligent dice

ABSTRACT

The disclosure relates to an intelligent dice, comprising: a shell, which is formed with a plurality of surfaces displaying the figures; an acceleration sensor, which is provided in the shell and used for collecting vector data of gravitational acceleration; when the acceleration sensor is in the zero acceleration state, the direction corresponding to the gravitational acceleration is the first direction, and when the intelligent dice is thrown and in a static state, the direction corresponding to the gravitational acceleration is the second direction; according to the relative position of the first direction and the second direction, and the relative position of the first direction and each of the surfaces displaying the figure, the relative position of the second direction with respect to the surface can be calculated, so as to determine the figure information facing upward displayed by the intelligent dice.

DESCRIPTION OF THE BACKGROUND 1. Field of the Invention

The invention relates to the technical field of dice, in particular to an intelligent dice.

2. Description of the Related Art

With the improvement of people's material living standards, the pursuit of spiritual entertainment has become more diversified. In various forms of party games, dice are common entertainment props, such as group running games, table games, etc. However, during the epidemic period, online interactions have replaced offline gatherings. Traditional dice require users to manually judge the figures on the dice. The dice itself cannot recognize the figures displayed upward after being thrown. The entertainment method of uploading dice figures to the Internet by the user is not only inconvenient, but also cannot guarantee the fairness of the game.

Therefore, it is necessary to provide a dice to avoid the need for a user to manually judge the figure of dice in the remote interactive entertainment, thereby improving the convenience and fairness of the game.

SUMMARY OF THE INVENTION

The purpose of the invention is to provide a dice to avoid the need for a user to manually judge the figure of dice in the remote interactive entertainment, thereby improving the convenience and fairness of the game.

On the one hand, the invention provides an intelligent dice, comprising:

-   -   a shell, which is formed with a plurality of surfaces displaying         the figures;     -   an acceleration sensor, which is provided in the shell and used         for collecting vector data of gravitational acceleration;     -   when the acceleration sensor is in the zero acceleration state,         the direction corresponding to the gravitational acceleration is         the first direction, and when the intelligent dice is thrown and         in a static state, the direction corresponding to the         gravitational acceleration is the second direction; according to         the relative position of the first direction and the second         direction, and the relative position of the first direction and         each of the surfaces displaying the figure, the relative         position of the second direction with respect to the surface can         be calculated, so as to judge the figure information facing         upward displayed by the intelligent dice.

Preferably, a space coordinate system is established with the first direction as any axis; each of the surfaces displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system;

-   -   according to the coordinate interval in which the vector         coordinates of the second direction in the space coordinate         system fall, the figure information displayed on the dice         corresponding to the coordinate interval is acquired.

Preferably, a space coordinate system [X, Y, Z] is established with the first direction as the Z axis, and the vector coordinates of the second direction satisfy the relational expression:

R=[R _(x) , R _(y) , R _(z)];

wherein, R is the vector coordinate of the second direction in the space coordinate system [X, Y, Z], R_(x) is the coordinate parameter of the projection of the second direction on the X-axis, R_(y) is the coordinate parameter of the projection of the second direction on the Y-axis, and R_(z) is the coordinate parameter of the projection of the second direction on the Z-axis;

-   -   the coordinate interval corresponding to each of the surfaces         displaying the figure mapping in the space coordinate system         satisfies the relational expression:

N=[N _(x) , N _(y) , N _(z)];

wherein, N is the coordinate interval of the space coordinate system [X, Y, Z] mapped by any of the surfaces displaying the figure, N_(x) is the coordinate parameter of the projection of the surface on the X axis, N_(y) is the coordinate parameter of the projection of the surface on the Y axis, and N_(z) is the coordinate parameter of the projection of the surface on the Z axis;

-   -   the coordinate values of [R_(x), R_(y), R_(z)] and [N_(x),         N_(y), N_(z)] are compared to judge the surface facing upward         displayed by the intelligent dice corresponding to the second         direction.

Preferably, the intelligent dice further comprises:

-   -   a circuit board, which is provided in the shell;     -   an antenna, which is provided on the shell and is electrically         connected to the circuit board; the antenna sends the figure         information to the user control terminal.

Preferably, the intelligent dice further comprises:

-   -   a chip, which is provided on the circuit board and is         electrically connected to the circuit board; the chip calculates         vector coordinates corresponding to the vector data according to         the vector data collected by the acceleration sensor.

Preferably, the intelligent dice further comprises:

-   -   a battery, which is provided in the shell and is electrically         connected to the circuit board;     -   wireless charging coils, which are provided in the shell and are         electrically connected to the battery.

Preferably, the intelligent dice further comprises:

-   -   an LED lamp, which is provided in the shell and is electrically         connected to the circuit board.

Preferably, the intelligent dice further comprises:

-   -   a digital display layer, which is integrally formed on the         surface with a light-transmitting material to display the         figure; the light emitted by the LED lamp is emitted to the         outside of the shell through the digital display layer.

Preferably, the intelligent dice further comprises:

-   -   an inner filling layer, which is filled in the shell and wraps         the acceleration sensor, the LED lamp, and the circuit board.

Preferably, the inner filling layer is made of transparent material; the light emitted by the LED lamp is emitted to the outside of the shell through the inner filling layer and the digital display layer in sequence.

The invention has the following advantageous effects:

In order to avoid the need for the user to manually judge the figure of dice in the remote interactive entertainment, an acceleration sensor is provided in the shell; the vector data of gravitational acceleration is collected by the acceleration sensor, so that the relative positions of the second direction relative to each surface are calculated based on the relative positions of the second direction relative to the first direction, with the first direction as a reference, each surface with a fixed position relative to the first direction as another reference, so as to judge the figure information facing upward displayed by the intelligent dice, thereby improving the convenience and fairness of the game.

In order to calculate the figure information according to the collected vector data, a space coordinate system is established by taking the first direction as any axis; each of the surfaces displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system; according to the coordinate interval in which the vector coordinates of the second direction in the space coordinate system fall, the figure information displayed on the dice corresponding to the coordinate interval is acquired. Therefore, the relative positional relationship between the first direction, the second direction and each surface is quantified in the space coordinate system to calculate accurate data, thereby accurately judging the figure information.

In order to prevent the user from manually uploading the figure information of the dice, an antenna is provided on the casing, so that the figure information of the dice is automatically uploaded to the Internet to realize remote mutual entertainment.

In order to accurately obtain the real-time figure information of the dice, a chip is provided in the shell, so that the figure information is calculated in real time, which improves the real-time performance of remote interactive entertainment and the accuracy of data.

In order to avoid the lack of battery life due to the small size of the intelligent dice, a battery and wireless charging coils are provided in the shell, so that the user can throw the intelligent dice on the wireless charging device to realize charging while playing, which improves the battery life.

In order to improve the entertainment of throwing dice, an LED lamp is provided in the shell, so that users can obtain a richer entertainment experience; the light-transmitting material is integrally formed on the surface of the shell to display the figures, so that the light of the LED lamp can fully illuminate the displayed figures.

In order to prevent the impact force of throwing from damaging electronic components such as circuit boards and acceleration sensors inside the shell, an internal filling layer is provided in the shell to wrap the LED lamp and the circuit board to play a buffering role.

A transparent material is used as the inner filling layer, so that the light of the LED lamp can reach the digital display layer.

BRIEF DESCRIPTION OF THE DRAWINGS

In order to explain the embodiments of the invention or the technical solutions in the prior art more clearly, the drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced hereinafter. Obviously, the drawings in the following description are only some embodiments of the invention. For those of ordinary skill in the art, other drawings can be obtained based on these drawings without creative efforts.

FIG. 1 is a schematic structural diagram of the intelligent dice according to an embodiment of the invention;

FIG. 2 is a schematic diagram of vector coordinates in the second direction according to an embodiment of the invention;

FIG. 3 is a block diagram of information transmission according to an embodiment of the invention;

FIG. 4 is a structural block diagram of the intelligent interconnection system according to an embodiment of the invention;

FIG. 5 is a structural block diagram of the chip according to an embodiment of the invention;

FIG. 6 is a schematic diagram of wireless charging according to an embodiment of the invention;

In the drawings, 100 refers to the intelligent dice; 10 refers to the shell; 11 refers to the surface; 20 refers to the acceleration sensor; 21 refers to the vector data; F1 refers to the first direction; F2 refers to the second direction; 22 refers to the figure information; 30 refers to the circuit board; 40 refers to the antenna; 50 refers to the chip; 61 refers to the battery; 62 refers to the wireless charging coil; 70 refers to the LED lamp; 81 refers to the digital display layer; 82 refers to the inner filling layer; 200 refers to the intelligent interconnection system; 210 refers to the user control terminal; 300 refers to the computer readable storage medium; 410 refers to the memory; 420 refers to the processor.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

In order to facilitate understanding of the invention, the invention will be described more fully hereinafter with reference to the drawings. Preferred embodiments of the invention are shown in the drawings. However, the invention may be embodied in many different forms and is not limited to the embodiments described herein. Rather, these embodiments are provided so that a thorough and complete understanding of the disclosure is provided.

It should be noted that when an element is referred to as being “fixed” to another element, it can be directly on the other element or intervening elements may also be present. When an element is referred to as being “connected” to another element, it can be directly connected to the other element or intervening elements may also be present. The terms “vertical”, “horizontal”, “left”, “right” and similar expressions are used herein for illustrative purposes only.

Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the art to which this invention belongs. The terms used herein in the description of the invention are for the purpose of describing specific embodiments only, and are not intended to limit the invention. As used herein, the term “and/or” includes any and all combinations of one or more of the associated listed items.

An intelligent dice, comprising:

-   -   a shell, which is formed with a plurality of surfaces displaying         the figures;     -   an acceleration sensor, which is provided in the shell and used         for collecting vector data of gravitational acceleration;     -   when the acceleration sensor is in the zero acceleration state,         the direction corresponding to the gravitational acceleration is         the first direction, and when the intelligent dice is thrown and         in a static state, the direction corresponding to the         gravitational acceleration is the second direction; according to         the relative position of the first direction and the second         direction, and the relative position of the first direction and         each of the surfaces displaying the figure, the relative         position of the second direction with respect to the surface can         be calculated, the figure information facing upward displayed by         the intelligent dice can be calculated.

In order to avoid the need for the user to manually judge the figure of dice in the remote interactive entertainment, an acceleration sensor is provided in the shell; the vector data of gravitational acceleration is collected by the acceleration sensor, so that the relative positions of the second direction relative to each surface are calculated based on the relative positions of the second direction relative to the first direction, with the first direction as a reference, each surface with a fixed position relative to the first direction as another reference, so as to judge the figure information facing upward displayed by the intelligent dice, thereby improving the convenience and fairness of the game.

Some embodiments of the application will be described in detail hereinafter with reference to the drawings. The embodiments described hereinafter and features in the embodiments may be combined with each other without conflict.

With reference to FIG. 1 -FIG. 6 , an embodiment of the invention provides an intelligent dice 100, comprising a shell 10, an acceleration sensor 20, a circuit board 30, an antenna 40, a chip 50, a battery 61, wireless charging coils 62, an LED lamp 70, a digital display layer 81, and an inner filling layer 82.

Specifically, the shell 10 is formed with a plurality of surfaces 11 displaying the figures.

Specifically, the acceleration sensor 20 is provided in the shell 10 and used for collecting vector data 21 of gravitational acceleration.

Specifically, when the acceleration sensor 20 is in the zero acceleration state, the direction corresponding to the gravitational acceleration is the first direction F1, and when the intelligent dice 100 is thrown and in a static state, the direction corresponding to the gravitational acceleration is the second direction F2; according to the relative position of the first direction F1 and the second direction F2, and the relative position of the first direction F1 and each of the surface 11 displaying the figure, the figure information 22 facing upward displayed by the intelligent dice 100 can be calculated.

Accordingly, in order to avoid the need for the user to manually judge the figure of dice in the remote interactive entertainment, an acceleration sensor 20 is provided in the shell 10; the vector data 21 of gravitational acceleration is collected by the acceleration sensor 20, so that the relative positions of the second direction F2 relative to each surface 11 are calculated based on the relative positions of the second direction F2 relative to the first direction F1, with the first direction F1 as a reference, each surface 11 with a fixed position relative to the first direction F1 as another reference, so as to judge the figure information 22 facing upward displayed by the intelligent dice 100, thereby improving the convenience and fairness of the game.

Preferably, a space coordinate system is established with the first direction F1 as any axis. Each of the surface 11 displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system. According to the coordinate interval in which the vector coordinates of the second direction F2 in the space coordinate system fall, the figure information 22 displayed on the dice corresponding to the coordinate interval is acquired.

Accordingly, in order to calculate the figure information 22 according to the collected vector data 21, a space coordinate system is established by taking the first direction F1 as any axis. Each of the surface 11 displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system. According to the coordinate interval in which the vector coordinates of the second direction F2 in the space coordinate system fall, the figure information 22 displayed on the dice corresponding to the coordinate interval is acquired. Therefore, the relative positional relationship between the first direction F1, the second direction F2 and each surface 11 is quantified in the space coordinate system to calculate accurate data, thereby accurately judging the figure information 22.

Preferably, a space coordinate system [X, Y, Z] is established with the first direction F1 as the Z axis, and the vector coordinates of the second direction F2 satisfy the relational expression:

R=[R _(x) , R _(y) , R _(z)];

wherein, R is the vector coordinate of the second direction F2 in the space coordinate system [X, Y, Z], R_(x) is the coordinate parameter of the projection of the second direction F2 on the X-axis, R_(y) is the coordinate parameter of the projection of the second direction F2 on the Y-axis, and R_(z) is the coordinate parameter of the projection of the second direction F2 on the Z-axis;

-   -   the coordinate interval corresponding to each of the surfaces         displaying the figure mapping in the space coordinate system         satisfies the relational expression:

N=[N _(x) , N _(y) , N _(z)];

wherein, N is the coordinate interval of the space coordinate system [X, Y, Z] mapped by any of the surfaces 11 displaying the figure, N_(x) is the coordinate parameter of the projection of the surface 11 on the X axis, N_(y) is the coordinate parameter of the projection of the surface 11 on the Y axis, and N_(z) is the coordinate parameter of the projection of the surface 11 on the Z axis;

-   -   the coordinate values of [R_(x), R_(y), R_(z)] and [N_(x),         N_(y), N_(z)] are compared to determine the surface facing         upward displayed by the intelligent dice 100 corresponding to         the second direction F2.

Specifically, the circuit board 30 is provided in the shell 10. The antenna 40 is provided on the shell 10 and is electrically connected to the circuit board 30; the antenna 40 sends the figure information 22 to a user control terminal 210.

Accordingly, in order to prevent the user from manually uploading the figure information 22 of the dice, an antenna 40 is provided on the casing 10, so that the figure information 22 of the dice is automatically uploaded to the Internet to realize remote mutual entertainment.

Specifically, the chip 50 is provided on the circuit board 30 and is electrically connected to the circuit board 30; the chip 50 calculates vector coordinates corresponding to the vector data 21 according to the vector data 21 collected by the acceleration sensor.

Accordingly, in order to accurately obtain the real-time figure information 22 of the dice, a chip 50 is provided in the shell 10, so that the figure information 22 is calculated in real time, which improves the real-time performance of remote interactive entertainment and the accuracy of data.

Specifically, the battery 61 is provided in the shell 10 and is electrically connected to the circuit board 30. The wireless charging coils 62 are provided in the shell 10 and are electrically connected to the battery 61.

Accordingly, in order to avoid the lack of battery life due to the small size of the intelligent dice 100, a battery 61 and wireless charging coils 62 are provided in the shell 10, so that the user can throw the intelligent dice 100 on the wireless charging device to realize charging while playing, which improves the battery life.

Specifically, the LED lamp 70 is provided in the shell 10 and is electrically connected to the circuit board 30.

Accordingly, in order to improve the entertainment of throwing dice, an LED lamp 70 and the like are provided in the shell 10, so that users can obtain a richer entertainment experience.

Specifically, the digital display layer 81 is integrally formed on the surface 11 with a light-transmitting material to display the figure; the light emitted by the LED lamp 70 is emitted to the outside of the shell 10 through the digital display layer 81.

More specifically, the material of the digital display layer 81 is:

liquid crystal polymer LCP+tritan.

The material of the shell 110 is:

tritan+(C₁₁H₁₂O₃)n+Fiberglass+liquid crystal polymer LCP

Accordingly, the light-transmitting material is integrally formed on the surface 11 of the shell 10 to display the figures, so that the light of the LED lamp 70 can fully illuminate the displayed figures.

Specifically, the inner filling layer 82 which is filled in the shell 10 and wraps the acceleration sensor 20, the LED lamp 70, and the circuit board 30; the inner filling layer 82 is made of transparent material; the light emitted by the LED lamp 70 is emitted to the outside of the shell 10 through the inner filling layer 82 and the digital display layer 81 in sequence.

Accordingly, in order to prevent the impact force of throwing from damaging electronic components such as circuit boards 30 and acceleration sensors 20 inside the shell 10, an internal filling layer 82 is provided in the shell 10 to wrap the LED lamp 70 and circuit board 30 to play a buffering role. Meanwhile, by using a transparent material as the inner filling layer 82, the light of the LED lamp 70 can reach the digital display layer 81.

More specifically, the material of the inner filling layer 82 may satisfy the following chemical formula:

(CH)+Polyurethane+(C₁₁H₁₂O)+SiO+PEEK+Graphene+Fe₂O₃+Polymer nickel (2%-5%)+SiO₂*22%+[(Na₂O+MgO+B₂O₃+CaO*2%]+(Al₂O₃*8%)+(SiO₂*12%)

Accordingly, the inner filling layer 82 satisfying the above chemical formula can keep the circuit system of the battery 61 working normally at −40° C. -+85° C.

The embodiment further provides an intelligent interconnection system 200, comprising the above intelligent dice 100, and the system further comprises:

-   -   user control terminals 210; a plurality of user control         terminals 210 are connected in communication with the         intelligent dice 100.

The embodiment further provides a method for calculating the figure of the intelligent dice 100, wherein the method comprises the steps of:

S10: collecting the vector data 21 of the gravitational acceleration when the intelligent dice 100 is in a zero acceleration state through the acceleration sensor 20, and taking the direction corresponding to the gravitational acceleration as the first direction F1.

-   -   S20: collecting the vector data 21 of the gravitational         acceleration after the intelligent dice 100 is thrown and is         static through the acceleration sensor 20, and taking the         direction corresponding to the gravitational acceleration as the         second direction F2.     -   S30: calculating the figure information 22 facing upward         displayed by the intelligent dice 100 according to the relative         position of the first direction F1 and the second direction F2,         and the relative position of the first direction F1 and each of         the surface 11 displaying the figure.     -   S31: a space coordinate system is established with the first         direction F1 as any axis; each of the surface 11 displaying the         figure is mapped to the corresponding coordinate interval in the         space coordinate system.

Specifically, a space coordinate system [X, Y, Z] is established with the first direction F1 as the Z axis;

-   -   the coordinate interval corresponding to each of the surface 11         displaying the figure mapping in the space coordinate system         satisfies the relational expression:

N=[N _(x) , N _(y) , N _(z)];

wherein, N is the coordinate interval of the space coordinate system [X, Y, Z] mapped by any of the surfaces 11 displaying the figure, N_(x) is the coordinate parameter of the projection of the surface 11 on the X axis, N_(y) is the coordinate parameter of the projection of the surface 11 on the Y axis, and N_(z) is the coordinate parameter of the projection of the surface 11 on the Z axis.

-   -   S32: according to the coordinate interval in which the vector         coordinates of the second direction F2 in the space coordinate         system fall, the figure information 22 displayed on the dice         corresponding to the coordinate interval is acquired.

Specifically, the vector coordinates of the second direction F2 satisfy the relational expression:

R=[R _(x) , R _(y) , R _(z)];

wherein, R is the vector coordinate of the second direction F2 in the space coordinate system [X, Y, Z], R_(x) is the coordinate parameter of the projection of the second direction F2 on the X-axis, R_(y) is the coordinate parameter of the projection of the second direction F2 on the Y-axis, and R_(z) is the coordinate parameter of the projection of the second direction F2 on the Z-axis;

-   -   the coordinate values of [R_(x), R_(y), R_(z)] and [N_(x),         N_(y), N_(z)] are compared to determine the surface 11 facing         upward displayed by the intelligent dice 100 corresponding to         the second direction F2.

More specifically, the embodiment provides a specific calculation example:

-   -   what the embodiment needs to calculate is the gravity vector         R=[R_(x), R_(y), R_(z)], which can calculate the value of the         gravity vector in the following ways:

In the space coordinate system, each axis of X, Y, and Z is perpendicular to the three directions of the dice. The vector R is the vector detected by the accelerometer, which is the result of the inertial force in the example above.

R_(X), R_(Y), R_(Z) are the projections of the vector Ron X-axis, Y-axis, and Z-axis.

Note the following relationships:

R ² =R _(X) ² +R _(Y) ² +R _(Z) ²  (Formula 1)

This formula 1 is equivalent to the three-dimensional space Pythagorean theorem. The digital accelerometer can obtain information through I2C, SPI or USART, while the output of the analog accelerometer is a voltage value within a predetermined range, which needs to be converted into a digital value with an ADC (analog to digital) module. For example, the output value of a 10-bit ADC module ranges from 0 to 1023.

Supposing that the following three axes of data are obtained from the 10-bit ADC module:

AdcRx=208;

AdcRy=485;

AdcRz=865;

Each ADC module has a reference voltage, assuming that it is 3.3V. To convert a 10-bit ADC value to a voltage value, the following formula is used:

VR x=AdcRx*VR/1023

Substitute the values of the 3 axes into the above formula to get:

VR_(x)=208*3.3/1023=0.671V

VR_(y)=485*3.3/1023=1.565V

VR_(z)=865*3.3/1023=2.790V

Each accelerometer has a voltage value of zero acceleration, which corresponds to an acceleration of 0 g. A signed voltage value can be obtained by calculating the offset from the 0 g voltage. For example, the 0 g voltage value V_(0 g)=1.650V, the offset relative to the 0 g voltage can be obtained in the following way:

DVR_(x)=0.671V−1.650V=−0.979V

DVR_(y)=1.565V−1.65V=−0.085V

DVR_(z)=2.790V−1.65V=1.140V

The final conversion also needs to introduce the sensitivity of the accelerometer, usually in mV/g. For example, the sensitivity of the accelerometer is Sensitivity=500 mV/g=0.5 V/g. To get the final acceleration in g, the following formula is used:

R _(X)=DVR_(x)/Sensitivity

R _(X)=−0.979V/0.5V/G=−1.958 g

R _(Y)=−0.085V/0.5V/G=−0.17 g

R _(Z)=1.140V/0.5V/G=2.28 g

R _(x)=(AdcR _(x)*VR/1023−V0G)/Sensitivity  (Formula 2)

R _(y)=(AdcR _(y)*VR/1023−V0G)/Sensitivity

R _(z)=(AdcR _(z)*VR/1023−V0G)/Sensitivity

Now the three components of the inertial force vector are obtained, and the device is not affected by any external force except gravity, it can be considered that this direction is the direction of the gravity vector. If you want to calculate the inclination of the device relative to the ground, you can calculate the angle between this vector and the Z axis. This result can be divided into two components: the inclination of the X-axis and the Y-axis, which can be obtained by calculating the angle between the gravity vector and the X and Y-axes.

The required angle is the angle between the vector R and the X, Y, Z axes, then taking these angles as A_(x)r, A_(y)r, A_(z)r.

cos (A _(x) r)=R _(x) /R, similarity:

cos (A _(y) r)=R _(y) /R

cos (A _(z) r)=R _(z) /R

From formula 1, it can be deduced that R=SQRT (R_(x) ²+R_(y) ²+R_(z) ²)

The required angle can be calculated by the arccos ( ) function:

A_(x) r=arccos (R _(x) /R)

A_(y) r=arccos (R _(y) /R)

A_(z) r=arccos (R _(z) /R)

The accelerometer will indicate the direction of the XZY axes corresponding to the physical chip 50 or device.

The following example is used to determine that the output of the accelerometer corresponds to RateAxz.

First keep the device level. The XY axes output of the accelerometer will be a zero acceleration voltage.

Rotate the device around the Y-axis, at this time, the acceleration output values of X and Z axis will change while that of the Y-axis remains unchanged.

When rotating the device at a constant speed, observe which channel of the accelerometer changes the output value, other outputs should remain unchanged.

When the accelerometer rotates around the Y axis, the channel where the output value changes is AdcGyroXZ, which is used to calculate RateA_(xz).

As the final step, confirm whether the RateA_(xz) value needs to be reversed.

Repeat the test above, rotating the device around the Y axis.

The same method can be used to test RateA_(y): by rotating the device around the X axis, you can measure which output of the totalizer corresponds to RateA_(yz) and whether it needs to be reversed. Once InvertA_(yz) is determined, RateA_(yz) can be calculated using the following formula:

RateA_(yz)=InvertA_(yz)*(AdcGyroYZ*VR/1023−VzeroRate)/Sensitivity

Based on the above algorithm, static gravitational acceleration can be measured in tilt detection applications. The device offers several special detection functions. The activity and inactivity detection function detects the presence or absence of motion by comparing the acceleration on any axis with a set threshold. The tap detection function can detect single and double vibrations in any direction. Free fall detection can detect if the device is falling. These functions can be independently mapped to one of the two interrupt output pins. Therefore, all directions of the dice can be detected at all times, and then wirelessly transmitted to the user's mobile phone.

The embodiment further provides a computer readable storage medium 300, which stores computer programs. When the computer program is executed by the processor 420, the processor 420 executes the above calculation method of the figures of the intelligent dice 100.

The embodiment further provides a chip 50, comprising a memory 410 and a processor 420. The memory 410 stores computer programs. When the computer program is executed by the processor 420, the processor 420 executes the above calculation method of the figures of the intelligent dice 100.

Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented by instructing relevant hardware through a computer program. The program in the embodiment may be stored in a non-volatile computer readable storage medium, and when the program is executed, the program may include the processes of the method in the foregoing embodiments. Wherein, any reference to memory, storage, database or other medium used in the various embodiments provided in this application may include non-volatile and/or volatile memory. As an illustration rather than limitation, RAM is available in various forms such as SRAM, DRAM, SDRAM, DDRSDRAM, ESDRAM, SLDRAM, RDRAM, DRDRAM, RDRAM, etc.

Whereby, in order to avoid the need for the user to manually judge the figure of dice in the remote interactive entertainment, an acceleration sensor 20 is provided in the shell 10; the vector data 21 of gravitational acceleration is collected by the acceleration sensor 20, so that the relative positions of the second direction F2 relative to each surface 11 are calculated based on the relative positions of the second direction F2 relative to the first direction F1, with the first direction F1 as a reference, each surface 11 with a fixed position relative to the first direction F1 as another reference, so as to judge the figure information 22 facing upward displayed by the intelligent dice 100, thereby improving the convenience and fairness of the game. In order to calculate the figure information 22 according to the collected vector data 21, a space coordinate system is established by taking the first direction F1 as any axis. Each of the surface 11 displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system. According to the coordinate interval in which the vector coordinates of the second direction F2 in the space coordinate system fall, the figure information 22 displayed on the dice corresponding to the coordinate interval is acquired. Therefore, the relative positional relationship between the first direction F1, the second direction F2 and each surface 11 is quantified in the space coordinate system to calculate accurate data, thereby accurately judging the figure information 22. In order to prevent the user from manually uploading the figure information 22 of the dice, an antenna 40 is provided on the casing 10, so that the figure information 22 of the dice is automatically uploaded to the Internet to realize remote mutual entertainment. In order to accurately obtain the real-time figure information 22 of the dice, a chip 50 is provided in the shell 10, so that the figure information 22 is calculated in real time, which improves the real-time performance of remote interactive entertainment and the accuracy of data. In order to avoid the lack of battery life due to the small size of the intelligent dice 100, a battery 61 and wireless charging coils 62 are provided in the shell 10, so that the user can throw the intelligent dice 100 on the wireless charging device to realize charging while playing, which improves the battery life. In order to improve the entertainment of throwing dice, an LED lamp 70 is provided in the shell 10, so that users can obtain a richer entertainment experience; the light-transmitting material is integrally formed on the surface 11 of the shell 10 to display the figures, so that the light of the LED lamp 70 can fully illuminate the displayed figures. In order to prevent the impact force of throwing from damaging electronic components such as circuit boards 30 and acceleration sensors 20 inside the shell 10, an internal filling layer 82 is provided in the shell 10 to wrap the LED lamp 70 and circuit board 30 to play a buffering role. Meanwhile, by using a transparent material as the inner filling layer 82 , the light of the LED lamp 70 can reach the digital display layer 81.

The above embodiments only represent several embodiments of the invention, and the descriptions thereof are specific and detailed, but should not be construed as a limitation on the scope of the patent application. It should be pointed out that for those of ordinary skill in the art, several modifications and improvements can also be made without departing from the concept of the invention, which all belong to the protection scope of the invention. Therefore, the protection scope of the patent of the invention should be subject to the appended claims. 

1. An intelligent dice, comprising: a shell, which is formed with a plurality of surfaces displaying the figures; an acceleration sensor, which is provided in the shell and used for collecting vector data of gravitational acceleration; when the acceleration sensor is in the zero acceleration state, the direction corresponding to the gravitational acceleration is the first direction, and when the intelligent dice is thrown and in a static state, the direction corresponding to the gravitational acceleration is the second direction; according to the relative position of the first direction and the second direction, and the relative position of the first direction and each of the surfaces displaying the figure, the relative position of the second direction with respect to the surface can be calculated, so as to determine the figure information facing upward displayed by the intelligent dice.
 2. The intelligent dice according to claim 1, wherein: a space coordinate system is established with the first direction as any axis; each of the surfaces displaying the figure is mapped to the corresponding coordinate interval in the space coordinate system; according to the coordinate interval in which the vector coordinates of the second direction in the space coordinate system fall, the figure information displayed on the dice corresponding to the coordinate interval is acquired.
 3. The intelligent dice according to claim 2, wherein: a space coordinate system [X, Y, Z] is established with the first direction as the Z axis, and the vector coordinates of the second direction satisfy the relational expression: R=[R _(x) , R _(y) , R _(z)]; wherein, R is the vector coordinate of the second direction in the space coordinate system [X, Y, Z], R_(x) is the coordinate parameter of the projection of the second direction on the X-axis, Ry is the coordinate parameter of the projection of the second direction on the Y-axis, and R_(z) is the coordinate parameter of the projection of the second direction on the Z-axis; the coordinate interval corresponding to each of the surfaces displaying the figure mapping in the space coordinate system satisfies the relational expression: N=[N _(x) , N _(y) , N _(z)]; wherein, N is the coordinate interval of the space coordinate system [X, Y, Z] mapped by any of the surfaces displaying the figure, N_(x) is the coordinate parameter of the projection of the surface on the X axis, N_(y) is the coordinate parameter of the projection of the surface on the Y axis, and N_(z) is the coordinate parameter of the projection of the surface on the Z axis; the coordinate values of [R_(x), R_(y), R_(z)] and [N_(x), N_(y), N_(z)] are compared to determine the surface facing upward displayed by the intelligent dice corresponding to the second direction.
 4. The intelligent dice according to claim 1, wherein the intelligent dice further comprises: a circuit board, which is provided in the shell; an antenna, which is provided on the shell and is electrically connected to the circuit board; the antenna sends the figure information to a user control terminal.
 5. The intelligent dice according to claim 4, wherein the intelligent dice further comprises: a chip, which is provided on the circuit board and is electrically connected to the circuit board; the chip calculates vector coordinates corresponding to the vector data according to the vector data collected by the acceleration sensor.
 6. The intelligent dice according to claim 4, wherein the intelligent dice further comprises: a battery, which is provided in the shell and is electrically connected to the circuit board; wireless charging coils, which are provided in the shell and are electrically connected to the battery.
 7. The intelligent dice according to claim 4, wherein the intelligent dice further comprises: an LED lamp, which is provided in the shell and is electrically connected to the circuit board.
 8. The intelligent dice according to claim 7, wherein the intelligent dice further comprises: a digital display layer, which is integrally formed on the surface with a light-transmitting material to display the figure; the light emitted by the LED lamp is emitted to the outside of the shell through the digital display layer.
 9. The intelligent dice according to claim 8, wherein the intelligent dice further comprises: an inner filling layer, which is filled in the shell and wraps the acceleration sensor, the LED lamp, and the circuit board.
 10. The intelligent dice according to claim 9, wherein the inner filling layer is made of transparent material; the light emitted by the LED lamp is emitted to the outside of the shell through the inner filling layer and the digital display layer in sequence. 